package com.otod.repository;

import com.otod.entity.Trade;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface TradeDao extends PagingAndSortingRepository<Trade, Long> {

    List<Trade> findByCodeAndTradeTime(String code, String tradeTime);

    List<Trade> findByCode(String code);

}
